package com.wx.tnsperson.mapper;


import com.wx.tnsperson.vo.ResumeVo;
import org.springframework.stereotype.Repository;
import java.util.List;


/**
 * @Author:LLH
 * @Date:2020/7/24
 */
@Repository
public interface ProRegisterAndLoginMapper {

    /*
     * 用户手机号验证码注册
     * @param proUserInfoModel
     * @return
     */
    Integer registerPhone ( ResumeVo resumeVo);

    /*
     * 用户手机号密码注册
     * @param proUserInfoModel
     * @return
     */
    Integer registerUser (  ResumeVo resumeVo);

    /*
     * 用户手机号登录
     * @param phone
     * @return
     */
    ResumeVo loginPhone (  String phone );

    /*
     * 用户手机号密码登录
     * @param proUserInfoModel
     * @return
     */
    ResumeVo loginUser ( ResumeVo resumeVo );


    /*
     * 查找手机号
     * @param phone
     * @return
     */
    ResumeVo findByPhone ( ResumeVo resumeVo);


    /*
     * 查找id
     * @param phone
     * @return
     */
    ResumeVo findById (Integer id);


    /*
     * 查找所有
     * @return
     */
    List<ResumeVo> findAll();

}
